import service from '@/utils/request'

export const useRoleApi = (id: number) => {
	return service.get('/nb/role_staff/findById',{
		params:{
			id:id
		}
	})
}

export const useRoleSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/role_staff/edit', dataForm)
	} else {
		return service.post('/nb/role_staff/add', dataForm)
	}
}